#include<iostream>

using namespace std;
int a[5] = { 1,2,3,4,5 };

int chazhao(int a[5],int x) {
	int i;
	int b = 0;


	for (i = 0; i < 5; i++)
	{
		
		
		if (a[i]== x)
			b++;
	}
	cout << b;
	return(0);
}
int main() {
	
	int x, b;
	cin >> x;
	

	chazhao(a, x);
}